package com.jiayinlending.jiayindai.fragment.mine;


import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.jiayinlending.jiayindai.R;
import com.jiayinlending.jiayindai.activity.mine.information.SecuritySettingActivity;
import com.jiayinlending.jiayindai.util.ToastUtil;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 验证身份信息
 */
public class ChangePhoneVerificationFragment extends Fragment {


    @Bind(R.id.bt_get_identity)
    Button btGetIdentity;
    @Bind(R.id.bt_go_change_finish)
    Button btGoChangeFinish;

    public ChangePhoneVerificationFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View rootView = inflater.inflate(R.layout.fragment_change_phone_verification, container, false);
        ButterKnife.bind(this, rootView);
        return rootView;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick({R.id.bt_get_identity, R.id.bt_go_change_finish})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.bt_get_identity:
                break;
            case R.id.bt_go_change_finish:
                startActivity(new Intent(getActivity(), SecuritySettingActivity.class));
                ToastUtil.show(getActivity(),"修改完成");
                break;
        }
    }

}
